package com.woniuxy.java106crm.mapper;

import com.woniuxy.java106crm.entity.Perms;
import com.woniuxy.java106crm.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.annotation.ManagedBean;
import java.util.List;

@Mapper
public interface RoleMapper {

    List<Role> queryRoles();

    boolean deleteRolePerms(Integer id);

    boolean addRolePerms(@Param("id") Integer id,@Param("p") Integer p);

    Boolean addRole(Role role);
    Boolean deleteRole(Integer id);

    Boolean deleteUserRole(Integer id);
}
